#ifndef TCP_MENU_H
#define TCP_MENU_H
#include <global_variable.h>

#include <QMainWindow>

class TCP_Menu : public QMainWindow
{
    Q_OBJECT
public:
    explicit TCP_Menu(QWidget *parent = 0);
    bool eventFilter(QObject *watched, QEvent *event);
    void UI_Init();
    void connect_Init();
    void FW_cnt(QString num);
    void Recive_TCPdata(QString s);
    QString ip_stand[4];
    QString the_btn_style[5];
    QList <QPushButton * >btnlist_ui;
    QPushButton *theBtn[8];
    QLabel* theLabel[10];
    QTimer *timer;
    QString parity_sel[3]={"无","奇校验","偶校验"};
    QString XY_sel[2]={"RS-232","RS-485"};
    int flag_bundrate=0;  //0->1200 1->2400 2->4800 3->9600  4->19200
    int cnt_flag=12; //修改数值时默认从第一个位置开始修改
    QChar num_str[15];
    QTimer *timer2;
    int Sel=0;
    QString str_show;
    QString str_show_2;
    QString str_show_3;
    QString bundrate_sel[8]={"1200","2400","4800","9600","19200","38400","57600","115200"};
    QLabel *Label_show;
    QString QString_show;
    bool show_flag=0;
    bool change_flag=0;  //1代表修改数据模式  0代表按键控制模式
    void change_Number(QString);

signals:

public slots:
};

#endif // TCP_MENU_H
